:root {
    color-scheme: light dark;
    /*    for safari popup page. */

    --personal-verify: -38px -53px;
    --organization-verify: -4px -53px;
    --non-verify: 17px -53px;
    --bili-brand: #FB7299;
    --bili-brand-a70: rgba(251, 114, 153, 0.7);
    --background: rgba(255, 255, 255,1);
    --background-a70: rgba(255, 255, 255, 0.7);
    --text-gray: #6d757a;
}

a{
    text-decoration: none;
}

input[type='text']{
    border-bottom: 1px solid var(--bili-brand);
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    transition: .2s;
    background: var(--background);
    line-height: 25px;
    margin-top: 12px;
    min-width: 165px;
}

input[type='text']:focus-visible {
    border-bottom: 3px solid var(--bili-brand);
    border-left: none;
    border-right: none;
    border-top: none;
    outline: none;
}


#main{
    padding-top: 0;
}

.setting-group{
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    align-items: center;
}

.setting-group:first-child{
    padding-top: 100px;
}

.setting-sub-group{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 90%;
    padding: 20px 0;
}

.setting-sub-group-title{
    font-weight: bold;
    font-size: 20px;
}

.setting-sub-group-item{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 20px 0;
}

.setting-item-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.setting-item-text div{
    margin: 5px 0;
}

.setting-item-name{
    font-weight: bold;
}

.setting-item-description{
    font-size: 12px;
    color: var(--text-gray);
}

#rua-icon-host{
    height: 90px;
    width: 100%;
    background-color: rgba(255,255,255, 0.72);
    border-bottom: 1px solid #aaa;
    min-width: 800px;
}

.rua-setting-user-block{
    width: 90%;
    padding: 20px 0;
    border-top: solid 1px #aaa;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.rua-setting-user-info{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-left: 20px;
}

.user-face{
    overflow:visible;
    position: relative;
    border-radius: 48px;
}

.verified{
    right: -2px;
    top: 42px;
    width: 20px;
    height: 20px;
    background-image: url("../images/misc/user-auth.png");
    background-position: var(--non-verify);
    background-repeat: no-repeat;
    z-index: 9;
    position: absolute;
}

.user-face img{
    width: 60px;
    height: 60px;
    border-radius: 60px;
}
.user-name{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-name span, .user-name a{
    line-height: 30px;
    margin-left: 25px;
}

.user-name span{
    color: var(--text-gray);
}

.user-name a{
    transition: 0.15s;
    color: #000;
}

.user-name a:hover{
    color: var(--bili-blue);
}

.user-name .verify-text{
    font-size: 12px;
}

.button-host{
    padding: 0 30px;
    height: 60px;
}

.button-host span{
    line-height: 60px;
}

.button{
    line-height: 60px;
    padding: 0;
}

.rua-setting-button-group{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-right: 20px;
}

.rua-head{
    /*position: fixed;*/
    z-index: 10;
    height: 62px;
    user-select: none;
    border-top: none;
    border-bottom: solid 1px #aaa;
    background: var(--light-background-a70);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

#rua-nav{
    right: 100px;
}

.rua-nav-left{
    display: flex;
    margin-left: 60px;
    height: 90px;
    overflow: visible;
}

.rua-nav-left b{
    line-height: 90px;
    margin-left: 20px;
    font-size: 22px;
    user-select: none;
}

.rua-head-border::after{
    min-width: 750px;
    content: '';
    top: 62px;
    width: calc(100% - 150px);
    height: 1px;
    padding: 0 75px;
    position: inherit;
    background: #aaa;
}

.setting-heading{
    font-size: 20px;
    margin: 50px 150px 0 150px;
}

.rua-setting-col{
    display: flex;
    margin: 0 250px;
    flex-direction: column;
    justify-content: space-around;
}

.rua-setting-row{
    margin: 25px 0;
    display: flex;
    justify-content: space-between;
}

.setting-block{
    display: flex;
    margin: 0 50px;

}

.setting-text{
    line-height: 57px;
}

.dropbox{
    width: 40px;
    line-height: 57px;
    margin-left: 15px;
}

.dropbox select{
    padding: 0 2%;
    border: 0;
    border-bottom: 2px solid var(--bili-brand);
    scrollbar-width:thin;
    outline: none !important;
    transition: 0.4s;
    -webkit-transition: 0.4s;
}

.dropbox select::-webkit-scrollbar{
    width: 6px;
    height: 6px;
}

.dropbox select::-webkit-scrollbar-thumb{
    border-radius: 6px;
    background-color: #aaa;
}

.setting-description{
    color: var(--text-gray);
    line-height: 57px;
}

.medal{
    display: inline-block;
    height: 30px;
}

/*.medal-section{*/
/*    position: relative;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    flex-shrink: 0;*/
/*    min-width: 70px;*/
/*    height: 16px;*/
/*    box-sizing: border-box;*/
/*}*/

.medal-name{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-width: 12px;
    padding: 0 4px;
    color: #fff!important;
    border-top-left-radius: 1px;
    border-bottom-left-radius: 1px;
    margin-left: unset!important;
}

.medal-label{
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-width: 12px;
    padding: 0 4px;
    color: #fff;
    border-top-left-radius: 1px;
    border-bottom-left-radius: 1px;
    box-sizing: content-box;
    height: 100%;
    text-align: center;
    float: left;
}

.medal-border{
    box-sizing: content-box;
    height: 14px;
    line-height: 14px;
    color: #fff;
    border: 1px solid transparent;
    white-space: nowrap;
    border-radius: 2px;
    font-family: "Microsoft YaHei", "Microsoft Sans Serif", "Microsoft SanSerf", "\5FAE\8F6F\96C5\9ED1";
    font-size: 12px;
    position: relative;
    cursor: default;
    display: inline-block;
    margin: 8px 0;
}

.medal-level{
    width: 16px;
    background-color: #fff;
    text-align: center;
    color: transparent;
    border-top-left-radius: 1px;
    border-bottom-right-radius: 1px;
    float: left;
    height: 100%;
}
/*.button-host{*/
/*    margin-left: 20px;*/
/*}*/

.item-left-side, .item-right-side{
    display: flex;
}

.item-left-side{
    margin-left: 20px;
}

.item-right-side{
    margin-right: 20px;
}

.selection{
    padding: 0 5px;
    margin: 15px 25px 0;
    border: 0;
    border-bottom: 2px solid var(--bili-brand);
    scrollbar-width: thin;
    outline: 0!important;
    transition: .4s;
    -webkit-transition: .4s;
    height: 25px;
    background-color: var(--background);
}

.setting-item-input{
    margin-left: 30px;
    margin-right: 25px;
}

.setting-second-level-group{
    margin: 0 0 0 30px;
}

@media (prefers-color-scheme: dark) {
    :root{
        --bili-brand: #23ADE5!important;
        --bili-brand-a70: rgba(35, 173, 229, 0.7) !important;
        --background: rgba(41, 42, 45,1) !important;
        --background-a70: rgba(41, 42, 45, 0.7) !important;
        --text-gray: #8d959a!important;
    }
    #rua-icon-host{
        background-color: rgba(0, 0, 0, 0.72);
        border-bottom: none;
    }

    .rua-head{
        background: var(--background-a70);
    }

    .user-name a{
        color: #fff;
    }


    .dropbox select{
        background: #292a2d;
        color: #fff;
    }
}

